package edu.osu.intelligentagents.common;

import java.util.Vector;

public class Action {
	private int id;
	private String name;
	private float[][] transition;

	public Action(int id, String name, float[][] transition) {
		this.id = id;
		this.name = name;
		this.transition = transition;
	}

	public int getId() {
		return id;
	}

	public void setId(int id) {
		this.id = id;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public Vector<Float> getStates(int stateId) {
		Vector<Float> probabilities = new Vector<>();
		for (int i = 0; i < transition.length; i++) {
			probabilities.add(transition[stateId][i]);
		}
		return probabilities;
	}

	public float[][] getTransition() {
		return transition;
	}

	@Override
	public String toString() {
		// TODO Auto-generated method stub
		return name;
	}
}
